package com.cloud.tsp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloud.api.domain.tsp.QueryVehicleProduction;
import com.cloud.api.domain.tsp.VehicleProduction;
import com.cloud.api.constants.StrVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haohaibo
 * @since 2023-12-20
 */
public interface VehicleProductionMapper extends BaseMapper<VehicleProduction> {

    IPage<VehicleProduction>selectProductionList(IPage<?> page, @Param("c") QueryVehicleProduction para);
    List<VehicleProduction>selectAllProductionList(@Param("c") QueryVehicleProduction para);

    VehicleProduction getById(@Param("id") String id);

    VehicleProduction selectByVin(@Param("vin") String vin);
    VehicleProduction selectByVin1(@Param("id") String id);

    VehicleProduction getNameByVin(@Param("vin") String vin);

    List<StrVo> selectProductionVinList(IPage<?> page,@Param("vin") String vin);

    List<String> getProductionModel();

    List<VehicleProduction> getProductionCount();
}